# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-datetime-event-recurrence
pkgver=0.19
pkgrel=8
pkgdesc="Perl/CPAN Module DateTime::Event::Recurrence"
arch=("any")
url="https://search.cpan.org/dist/DateTime-Event-Recurrence"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/F/FG/FGLOCK/DateTime-Event-Recurrence-$pkgver.tar.gz")
sha256sums=('f9408789a461107766ca1a232bb3ec1e702eec7ca8167401ea6ec3f4b6d0b5a5')

build() {
  cd "$srcdir"/DateTime-Event-Recurrence-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/DateTime-Event-Recurrence-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
